package com.ptswitch.material.util;

import com.ptswitch.material.model.contract.ContractItem;

public class ValidateUtil {

    public static String numCurrentReceiving(ContractItem item) {
        return "required,min=0,max=" + item.getNumUnReceiving();
    }

    public static String numCurrentPass(ContractItem item) {
        return "required,min=0,max=" + item.getNumUnExamine();
    }

    public static String numCurrentUnPass(ContractItem item) {
        return "required,min=0,max=" + item.getNumUnExamine();
    }

    public static String numCurrentReturn(ContractItem item) {
//		return "required,min=0,max=" + (item.getNumUnExamine() + item.getNumUnPass());
        return "required,min=0,max=" + item.getNumReceiving();
    }
}
